package com.neu.service;

import com.neu.bean.User;
import com.neu.utils.AjaxResult;

/**
 * Created by dllo on 18/3/12.
 */
public interface UserService {
    /**
     * 注册
     * @param uname
     * @param password
     * @param tel
     */
    AjaxResult reg(String uname, String password, String tel);
    void register(User user);
    /**
     * 判断名字是否存在
     * @param username
     * @return
     */
    boolean userExist(String username);

    /**
     * 登录
     * @param name
     * @param password
     * @return
     */
    User login(String name,String password);
}
